package cn.itcalvin.sncoal.cth.controller;

import cn.itcalvin.sncoal.cth.aspect.LogAnnotation;
import cn.itcalvin.sncoal.cth.pojo.common.RespUserInfo;
import cn.itcalvin.sncoal.cth.service.AnalyseService;
import cn.itcalvin.sncoal.cth.utils.JwtUtil;
import cn.itcalvin.vo.Message;
import cn.itcalvin.vo.MessageUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@Api(tags = "消息管理")
@RestController
@RequestMapping("/api/message")
public class MessageController {

    @Resource
    AnalyseService analyzeService;

    @PostMapping("getNotice")
    @ApiOperation(value = "获取是否存在需要处理的评分")
    @LogAnnotation(value = "获取是否存在需要处理的评分")
    public Message getNotice() {
        return MessageUtil.success(analyzeService.getNotice());
    }
}
